package cn.jjxx.modules.project.service.impl;

import cn.jjxx.core.common.service.impl.CommonServiceImpl;
import cn.jjxx.modules.project.entity.ProjectDistributionManagement;
import cn.jjxx.modules.project.mapper.ProjectDistributionManagementMapper;
import cn.jjxx.modules.project.service.IProjectDistributionManagementService;
import com.baomidou.mybatisplus.mapper.Wrapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**   
 * @Title: 项目基本信息
 * @Description: 项目基本信息
 * @author zx
 * @date 2021-03-16 16:38:09
 * @version V1.0   
 *
 */
@Transactional
@Service("projectDistributionManagementService")
public class ProjectDistributionManagementServiceImpl  extends CommonServiceImpl<ProjectDistributionManagementMapper,ProjectDistributionManagement> implements  IProjectDistributionManagementService {

	@Override
	public boolean insertBatch(List<ProjectDistributionManagement> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.insertBatch(list);
		}
		return true;
	}

	@Override
	public boolean updateBatch(List<ProjectDistributionManagement> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.updateBatch(list);
		}
		return true;
	}

	@Override
	public List<ProjectDistributionManagement> selectTotal(Wrapper<ProjectDistributionManagement> wrapper) {
		return baseMapper.selectTotal(wrapper);
	}

	@Override
	public List<ProjectDistributionManagement> selectDetail(Wrapper<ProjectDistributionManagement> wrapper) {
		return baseMapper.selectDetail(wrapper);
	}

	@Override
	public List<ProjectDistributionManagement> selectBasic(Wrapper<ProjectDistributionManagement> wrapper) {
		return baseMapper.selectBasic(wrapper);
	}
}
